(global.webpackJsonp = global.webpackJsonp || []).push([ [ "components/api-env/index" ], {
    "0a0a": function(e, t, a) {
        (function(e) {
            var n = a("4ea4").default;
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.default = void 0;
            var o = n(a("a34a")), r = n(a("c973")), c = n(a("7037")), u = n(a("2de2")), i = a("24af"), s = {
                name: "ApiEnv",
                data: function() {
                    return {
                        showPanel: !1,
                        tabs: [ "缓存", "便捷操作", "appData" ],
                        activeTab: 0,
                        storageKeys: [],
                        appData: [],
                        valueIndex: -1,
                        expandValue: [],
                        apiEnvIconDrag: (0, i.usePageStorageDrag)("api-env"),
                        debugIconDrag: (0, i.usePageStorageDrag)("debug")
                    };
                },
                computed: {
                    showTestEnv: function() {
                        return u.default.isOpenTest ? u.default.env || "-prd" : "";
                    },
                    mockStatus: function() {
                        return !(!u.default.mockStatus || !u.default.mockUser);
                    },
                    grayVersion: function() {
                        return u.default.grayVersion ? "v".concat(u.default.grayVersion) : "";
                    }
                },
                methods: {
                    getAppData: function() {
                        var e = getCurrentPages(), t = e[e.length - 1].$vm, a = {};
                        for (var n in t) {
                            var o;
                            n.startsWith("$") || n.startsWith("_") || "function" == typeof t[n] || "symbol" === (0, 
                            c.default)(t[n]) || null !== (o = t[n]) && void 0 !== o && o._isVue || (a[n] = t[n]);
                        }
                        return a;
                    },
                    initAppData: function() {
                        var e = this.getAppData();
                        this.appData = (0, i.formatMap)(e);
                    },
                    copyParams: function() {
                        var t = getCurrentPages(), a = t[t.length - 1].options, n = [];
                        for (var o in a) Object.prototype.hasOwnProperty.call(a, o) && n.push("".concat(o, "=").concat(a[o]));
                        e.setClipboardData({
                            data: n.join("&"),
                            success: function() {
                                e.showToast({
                                    title: "复制成功"
                                });
                            }
                        });
                    },
                    clearStorage: function() {
                        e.clearStorageSync(), this.storageKeys = [];
                    },
                    deleteKey: function(t, a) {
                        var n = this;
                        return (0, r.default)(o.default.mark(function r() {
                            return o.default.wrap(function(o) {
                                for (;;) switch (o.prev = o.next) {
                                  case 0:
                                    return o.next = 2, e.removeStorageSync(t);

                                  case 2:
                                    n.storageKeys.splice(a, 1);

                                  case 3:
                                  case "end":
                                    return o.stop();
                                }
                            }, r);
                        }))();
                    },
                    handleShowPanel: function() {
                        var t = this;
                        return (0, r.default)(o.default.mark(function a() {
                            var n;
                            return o.default.wrap(function(a) {
                                for (;;) switch (a.prev = a.next) {
                                  case 0:
                                    return t.showPanel = !0, a.next = 3, e.getStorageInfoSync();

                                  case 3:
                                    n = a.sent, t.storageKeys = n.keys, 2 === t.activeTab && t.initAppData();

                                  case 6:
                                  case "end":
                                    return a.stop();
                                }
                            }, a);
                        }))();
                    },
                    onTabClick: function(e) {
                        this.activeTab = e, 2 === this.activeTab && this.initAppData();
                    },
                    goSwitchEnv: function() {
                        e.navigateTo({
                            url: "/pages/setup/env/index"
                        });
                    }
                }
            };
            t.default = s;
        }).call(this, a("543d").default);
    },
    "233b": function(e, t, a) {
        a.r(t);
        var n = a("7a00"), o = a("f283");
        for (var r in o) [ "default" ].indexOf(r) < 0 && function(e) {
            a.d(t, e, function() {
                return o[e];
            });
        }(r);
        a("a8b8");
        var c = a("f0c5"), u = Object(c.a)(o.default, n.b, n.c, !1, null, "46885c94", null, !1, n.a, void 0);
        t.default = u.exports;
    },
    "7a00": function(e, t, a) {
        a.d(t, "b", function() {
            return n;
        }), a.d(t, "c", function() {
            return o;
        }), a.d(t, "a", function() {});
        var n = function() {
            var e = this;
            e.$createElement;
            e._self._c, e._isMounted || (e.e0 = e.apiEnvIconDrag.onChange);
        }, o = [];
    },
    a8b8: function(e, t, a) {
        var n = a("a973");
        a.n(n).a;
    },
    a973: function(e, t, a) {},
    f283: function(e, t, a) {
        a.r(t);
        var n = a("0a0a"), o = a.n(n);
        for (var r in n) [ "default" ].indexOf(r) < 0 && function(e) {
            a.d(t, e, function() {
                return n[e];
            });
        }(r);
        t.default = o.a;
    }
} ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "components/api-env/index-create-component", {
    "components/api-env/index-create-component": function(e, t, a) {
        a("543d").createComponent(a("233b"));
    }
}, [ [ "components/api-env/index-create-component" ] ] ]);